package org.common4j2ee.s2shs.dao.user;

import java.util.List;

import org.common4j2ee.s2shs.dao.HibernateDao;
import org.common4j2ee.s2shs.entity.user.Authority;
import org.springframework.stereotype.Component;

/**
 * 授权对象的泛型DAO.
 * 
 */
@Component
public class AuthorityDaoImpl extends HibernateDao<Authority, Long> {
	public List<Authority> getAllParent() {
		return this.find("select au from Authority au where au.parent.id is null");
	}
}
